with open("test.txt") as file_object:
    contents = file_object.read()
    print(contents.rstrip())

with open("lines.txt") as file_object:
    for line in file_object:
        print(line.strip())

with open("lines.txt") as file_object:
    lines = file_object.readlines()

for line in lines:
    print(line.strip())

with open("lines.txt") as file_object:
    lines = file_object.readlines()
pi_strings = ''
for line in lines:
    pi_strings += line.strip()

print(lines)
print(pi_strings)
print(len(pi_strings))